package com.lenovo.redission.redission.config.redission;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;


@ConfigurationProperties(prefix = "spring.redis")
@Data
public class RedissionProperties {
    private String enabled = "false";
    private String host;
    private int port = 6379;
    private String password;
    private int timeOut = 30000;
    private int database = 0;

    private Pool pool = new Pool();

    @Data
    public static class Pool {
        private int maxActive = 50;
        private int maxWait = -1;
        private int maxIdle = 8;
        private int minIdle = 0;
    }

}
